/**
 * Created by digidite on 2018/1/23.
 */

var card = '000314463316';
window.onload = function () {
    var url = null + 'spis/tv-service/vod/newyear/window/' + card + '/is';
    try{
        var ret = getHttpRequest(url);
        var isPrompt = eval("(" + ret + ")");
    }catch (error){
        console.log("出错了！！")
    }
    
   
};

function getHttpRequest(_url) {
    var request = new window.XMLHttpRequest();
    request.open("GET", _url, false);
    request.send(null);
    var ret= request.responseText;
    if(ret != "") {
        ret = ret.replace(/(\r\n)|(\r)|(\n)/gi, "");
        //ret = ret.replace(/(\\)/gi, "\\\\");
        //ret = ret.replace(/(\)/gi, "\\\");
    }
    return ret;
}